package bookshop.service;

import java.util.List;

import bookshop.domain.ReceiveAddr;

public interface ReceiveAddrService {
	
	//根据用户ID得到用户的收货地址
	List<ReceiveAddr> GetAllReceiverAddrByCustId(String custId);

	//根据用户id和地址id得到用户的所需要的收货地址
	ReceiveAddr GetReceiverAddrById(int receiveId);
	
	//添加新的用户收货地址信息
	void SavaReceiveAddr(ReceiveAddr receiveAddr);
	
	//根据收货地址ID更新收货信息
	void UpdateReceiveAddr(ReceiveAddr ra);
	
	//根据顾客ID取出收货地址状态是Y的收货地址信息
	ReceiveAddr GetReceiveAddrByStatus(String custId);
}
